/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.dal;

import edu.uoc.tdp.entity.Resource;
import edu.uoc.tdp.customException.EIssueException;
import edu.uoc.tdp.entity.BookingResource;
import edu.uoc.tdp.i18n.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 * @author fjaumot
 */
public class ManagementBookingPolicy {
    private ManagementDb mngBD = null;
    private Connection conexion = null;

public ManagementBookingPolicy() throws EIssueException{
        try {
            mngBD = new ManagementDb();
            mngBD.connectDB();
            conexion = mngBD.getConnection();
        } catch (edu.uoc.tdp.common.EIssueException ex) {
            Logger.getLogger(ManagementBookingResources.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public ManagementBookingPolicy(ManagementDb mngDb) {
        mngBD = mngDb;
        conexion = mngDb.getConnection();
    }
    
}
